package com.senjoeson.androidtv.securitydemo

import android.util.Log

/**
 * <pre>
 * author : sunqiao
 * e-mail : sunqiao@kayak.com.cn
 * time   : 2018/10/18
 * desc   :
 * version: 1.0
</pre> *
 */
class VisitManagerUtils {

    /**
     * 做一些初始化的操作
     *
     * @param server 服务器
     */
    fun init(server: VisitServer) {
        val result = server.visitSev()
        Log.d(TAG, "init: $result")
    }

    companion object {
        private val TAG = "VisitManager"
        private var mInstance: VisitManagerUtils? = null


        val instance: VisitManagerUtils
            get() {
                if (mInstance == null) {
                    synchronized(VisitManagerUtils::class.java){
                        if (mInstance == null) {
                            mInstance = VisitManagerUtils()
                        }
                    }

                }
               return mInstance as VisitManagerUtils
            }
    }
}
